this.BX=this.BX||{};this.BX.Default=this.BX.Default||{};this.BX.Default.Field=this.BX.Default.Field||{};(function(e){"use strict";BX.Default.Field.Address=function(e){this.init(e)};BX.Default.Field.Address.prototype={init:function e(i){var t;this.controlId=i["controlId"]||"";this.value=i["value"]||"";this.isMultiple=i["isMultiple"]==="true";this.nodeJs=i["nodeJs"]||"";this.fieldNameJs=i["fieldNameJs"]||"";this.fieldName=i["fieldName"]||"";this.showMap=(t=i["showMap"])!==null&&t!==void 0?t:true;var s=new BX.Fileman.UserField.Address(BX(this.controlId),{value:this.value,multiple:this.isMultiple,showMap:this.showMap});s.nodeJs=this.nodeJs;s.fieldNameJs=this.fieldNameJs;s.fieldName=this.fieldName;BX.addCustomEvent(s,"UserFieldAddress::Change",function(e){var i=BX(s.nodeJs);var t="";if(e.length===0){e=[{text:""}]}for(var l=0;l<e.length;l++){var d=e[l].text;if(!!e[l].coords){d+="|"+e[l].coords.join(";")}d=BX.util.htmlspecialchars(d);t+='<input type="hidden" name="'.concat(s.fieldNameJs,'" value="').concat(d,'" >')}i.innerHTML=t;BX.onCustomEvent(window,"onCrmEntityEditorUserFieldExternalChanged",[s.fieldName])})}}})(this.BX.Default.Field.Address=this.BX.Default.Field.Address||{});
//# sourceMappingURL=default.map.js